/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entidades.Revision;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Roggers
 */
@Entity
@Table(name = "informeinvestigacion")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Informeinvestigacion.findAll", query = "SELECT i FROM Informeinvestigacion i"),
    @NamedQuery(name = "Informeinvestigacion.findByDetalle", query = "SELECT i FROM Informeinvestigacion i WHERE i.detalle = :detalle"),
    @NamedQuery(name = "Informeinvestigacion.findByFecha", query = "SELECT i FROM Informeinvestigacion i WHERE i.fecha = :fecha"),
    @NamedQuery(name = "Informeinvestigacion.findByIdArituculoRevisor", query = "SELECT i FROM Informeinvestigacion i WHERE i.idArituculoRevisor = :idArituculoRevisor"),
    @NamedQuery(name = "Informeinvestigacion.findByIdInformeInvestigacion", query = "SELECT i FROM Informeinvestigacion i WHERE i.idInformeInvestigacion = :idInformeInvestigacion")})
public class Informeinvestigacion implements Serializable {
    private static final long serialVersionUID = 1L;
    @Size(max = 50)
    @Column(name = "Detalle", length = 50)
    private String detalle;
    @Basic(optional = false)
    @NotNull
    @Column(name = "Fecha", nullable = false)
    @Temporal(TemporalType.DATE)
    private Date fecha;
    @Basic(optional = false)
    @NotNull
    @Column(name = "IdArituculoRevisor", nullable = false)
    private int idArituculoRevisor;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "IdInformeInvestigacion", nullable = false)
    private Integer idInformeInvestigacion;

    public Informeinvestigacion() {
    }

    public Informeinvestigacion(Integer idInformeInvestigacion) {
        this.idInformeInvestigacion = idInformeInvestigacion;
    }

    public Informeinvestigacion(Integer idInformeInvestigacion, Date fecha, int idArituculoRevisor) {
        this.idInformeInvestigacion = idInformeInvestigacion;
        this.fecha = fecha;
        this.idArituculoRevisor = idArituculoRevisor;
    }

    public String getDetalle() {
        return detalle;
    }

    public void setDetalle(String detalle) {
        this.detalle = detalle;
    }

    public Date getFecha() {
        return fecha;
    }

    public void setFecha(Date fecha) {
        this.fecha = fecha;
    }

    public int getIdArituculoRevisor() {
        return idArituculoRevisor;
    }

    public void setIdArituculoRevisor(int idArituculoRevisor) {
        this.idArituculoRevisor = idArituculoRevisor;
    }

    public Integer getIdInformeInvestigacion() {
        return idInformeInvestigacion;
    }

    public void setIdInformeInvestigacion(Integer idInformeInvestigacion) {
        this.idInformeInvestigacion = idInformeInvestigacion;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idInformeInvestigacion != null ? idInformeInvestigacion.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Informeinvestigacion)) {
            return false;
        }
        Informeinvestigacion other = (Informeinvestigacion) object;
        if ((this.idInformeInvestigacion == null && other.idInformeInvestigacion != null) || (this.idInformeInvestigacion != null && !this.idInformeInvestigacion.equals(other.idInformeInvestigacion))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entidades.Revision.Informeinvestigacion[ idInformeInvestigacion=" + idInformeInvestigacion + " ]";
    }
    
}
